using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class dc_toothNoteMap : EntityTypeConfiguration<dc_toothNote>
    {
        public dc_toothNoteMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.Physician)
                .HasMaxLength(6);

            // Table & Column Mappings
            this.ToTable("dc_toothNote");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.PatIID).HasColumnName("PatIID");
            this.Property(t => t.Toothnb).HasColumnName("Toothnb");
            this.Property(t => t.LastUpdate).HasColumnName("LastUpdate");
            this.Property(t => t.Physician).HasColumnName("Physician");
            this.Property(t => t.Note).HasColumnName("Note");
        }
    }
}
